"""
API v1 主路由
"""
from fastapi import APIRouter

# 导入各个子路由模块
from app.api.v1.auth import router as auth_router
from app.api.v1.users import router as users_router
# from app.api.v1.projects import router as projects_router

api_router = APIRouter()

# 注册子路由
api_router.include_router(auth_router, prefix="/auth", tags=["authentication"])
api_router.include_router(users_router, prefix="/users", tags=["users"])
# api_router.include_router(projects_router, prefix="/projects", tags=["projects"])

@api_router.get("/")
async def api_root():
    """API根路径"""
    return {"message": "SmartCity-LLM Trainer API v1"}